import request from '@/utils/request'

// 查询药品使用登记列表
export function listMedicineRecords(query) {
  return request({
    url: '/btlfbreed/medicineRecords/list',
    method: 'get',
    params: query
  })
}

// 查询药品使用登记详细
export function getMedicineRecords(recordId) {
  return request({
    url: '/btlfbreed/medicineRecords/' + recordId,
    method: 'get'
  })
}

// 新增药品使用登记
export function addMedicineRecords(data) {
  return request({
    url: '/btlfbreed/medicineRecords',
    method: 'post',
    data: data
  })
}

// 修改药品使用登记
export function updateMedicineRecords(data) {
  return request({
    url: '/btlfbreed/medicineRecords',
    method: 'put',
    data: data
  })
}

// 删除药品使用登记
export function delMedicineRecords(recordId) {
  return request({
    url: '/btlfbreed/medicineRecords/' + recordId,
    method: 'delete'
  })
}


// 初始化下拉框
export function getOptionselect() {
  return request({
    url: '/api/optionMedicineInfoselect',
    method: 'get'
  })
}

// 初始化下拉框
export function getOptionCheckselect() {
  return request({
    url: '/api/optionCheckselect',
    method: 'get'
  })
}
